package com.kuzan.autocloud.client.sys.util;

import com.kuzan.autocloud.common.Constant;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>Description: </p>
 *
 * @author kuzank 2019/12/2
 */
public class HttpRequestUtil {


    public static String getPeople(HttpServletRequest request) {

        return request.getHeader(Constant.AuthorizationPerson);
    }

    public static Map appendPersonParam(Map param, HttpServletRequest request) {

        param.put("$person", request.getHeader(Constant.AuthorizationPerson));
        param.put("$organization", request.getHeader(Constant.AuthorizationOrganization));
        return param;
    }

}
